package fr.umlv.activity.Configuration;


/**
 * Permet d'afficher les mangas dans la vue Settings.
 * @see Settings
 * @author Kadir Kouki & Silvere Ducros
 *
 */
public class StringManga {
    public String name;
    public String xmlName;
    public boolean state = false;

    public StringManga( String name,String xmlName, boolean state ) {
        this.name = name;
        this.state = state;
        this.xmlName = xmlName;
    }

    public StringManga(String name, String xmlName,
			String state) {
    	this.name = name;
    	if(state.equals("true")) this.state = true;
    	else this.state = false;
        this.xmlName = xmlName;
	}

	public String getName() {
	    return name;
    }

    public boolean getState() {
	    return state;
    }
    
    public String getStringState() {
    	if(state == true) return "true";
    	else return "false";
    }

    public String getXMLName() {
    	return xmlName;
    }

    
	public void setState(boolean actif) {
		state = actif;
	}
}
